﻿using Husb.DataUtil;
using System.Data;
namespace CentralOffice.Enterprise.Data {


    partial class EnterpriseNoticeDataSet
    {
        partial class NoticesDataTable
        {

        }

        public partial class NoticesRow
        {
            public string FilterExpression
            {
                get
                {
                    string where = "";

                    //where += DataAccessUtil.GetPartWhereCondition("Id", this.Id);
                    where += DataAccessUtil.GetPartWhereCondition("Name", this);
                    where += DataAccessUtil.GetPartWhereCondition("NoticeNumber", this);
                    where += DataAccessUtil.GetPartWhereCondition("QueryNumber", this);
                    where += DataAccessUtil.GetPartWhereCondition("Significant", this, true);
                    where += DataAccessUtil.GetPartWhereCondition("Profile", this);
                    //where += DataAccessUtil.GetPartWhereCondition("IsTop", this, DbType.Boolean );
                    where += DataAccessUtil.GetPartWhereCondition("Accepter", this);
                    where += DataAccessUtil.GetPartWhereCondition("PublishDate","PublishDateEnd", this);
                    where += DataAccessUtil.GetPartWhereCondition("Status", this);
                    where += DataAccessUtil.GetPartWhereCondition("ContentText", this);

                    //if (this["IsDeleted"] != System.DBNull.Value) where += DataAccessUtil.GetPartWhereCondition("IsDeleted", this.IsDeleted);
                    //if (this["IsActive"] != System.DBNull.Value) where += DataAccessUtil.GetPartWhereCondition("IsActive", this.IsActive);
                    //if (this["CreatedTime"] != System.DBNull.Value) where += DataAccessUtil.GetPartWhereCondition("CreatedTime", this.CreatedTime);
                    //if (this["CreatedBy"] != System.DBNull.Value) where += DataAccessUtil.GetPartWhereCondition("CreatedBy", this.CreatedBy);
                    //if (this["ModifiedTime"] != System.DBNull.Value) where += DataAccessUtil.GetPartWhereCondition("ModifiedTime", this.ModifiedTime);
                    //if (this["LastModifiedBy"] != System.DBNull.Value) where += DataAccessUtil.GetPartWhereCondition("LastModifiedBy", this.LastModifiedBy);
                    //if (this["Version"] != System.DBNull.Value) where += DataAccessUtil.GetPartWhereCondition("Version", this.Version);
                    //if (this["Description"] != System.DBNull.Value) where += DataAccessUtil.GetPartWhereCondition("Description", this.Description);

                    return where;
                }
            }
        }
    }
}
